import request from '@/utils/request.js'

export function list(data) {
	return request({
		url: "/comment/list/" + data,
		method: "get"
	})
}
export function save(data) {
	return request({
		url: "/comment/save",
		method: "post",
		data: data
	})
}
export function saveWithImg(data) {
	return request({
		'url': '/comment/saveWithImg',
		method: "post",
		files: data.files,
		formData: data.formData
	})
}